function e(e, t, n) {
    return t in e ? Object.defineProperty(e, t, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : e[t] = n, e;
}

function t(e) {
    return (e = e.toString())[1] ? e : "0" + e;
}

function n() {
    var e = new Date(), t = e.getMonth() + 1, n = e.getDate();
    return t >= 1 && t <= 9 && (t = "0" + t), n >= 0 && n <= 9 && (n = "0" + n), e.getFullYear() + "-" + t + "-" + n + " " + e.getHours() + ":" + e.getMinutes() + ":" + e.getSeconds();
}

function r(e) {
    var t = e + "0010000app";
    return console.log(t), s.hex_md5(t);
}

function o() {
    return "0000";
}

function u() {
    return n();
}

function i() {
    return "0010000app";
}

function g(e) {
    var t = u();
    return e.set("ko", o()), e.set("time", t), e.set("token", r(t)), e;
}

var a, s = require("md5.js");

module.exports = (a = {
    formatTime: function(e) {
        var n = e.getFullYear(), r = e.getMonth() + 1, o = e.getDate(), u = e.getHours(), i = e.getMinutes(), g = e.getSeconds();
        return [ n, r, o ].map(t).join("/") + " " + [ u, i, g ].map(t).join(":");
    },
    getToken: r,
    getKo: o,
    getTime: u,
    getPswId: i
}, e(a, "getPswId", i), e(a, "tokenAndKo", g), e(a, "tokenAndKo", g), a);